Optimal. Leaf size=575 \[ \frac {2 B^2 d^3 (c+d x)}{(b c-a d)^4 g^5 (a+b x)}-\frac {3 b B^2 d^2 (c+d x)^2}{4 (b c-a d)^4 g^5 (a+b x)^2}+\frac {2 b^2 B^2 d (c+d x)^3}{9 (b c-a d)^4 g^5 (a+b x)^3}-\frac {b^3 B^2 (c+d x)^4}{32 (b c-a d)^4 g^5 (a+b x)^4}+\frac {2 B d^3 (c+d x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{(b c-a d)^4 g^5 (a+b x)}-\frac {3 b B d^2 (c+d x)^2 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 (b c-a d)^4 g^5 (a+b x)^2}+\frac {2 b^2 B d (c+d x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{3 (b c-a d)^4 g^5 (a+b x)^3}-\frac {b^3 B (c+d x)^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{8 (b c-a d)^4 g^5 (a+b x)^4}+\frac {d^3 (c+d x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{(b c-a d)^4 g^5 (a+b x)}-\frac {3 b d^2 (c+d x)^2 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{2 (b c-a d)^4 g^5 (a+b x)^2}+\frac {b^2 d (c+d x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{(b c-a d)^4 g^5 (a+b x)^3}-\frac {b^3 (c+d x)^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 (b c-a d)^4 g^5 (a+b x)^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.27, antiderivative size = 575, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 4, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {2550, 2395,
2342, 2341} \begin {gather*} -\frac {b^3 (c+d x)^4 \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )^2}{4 g^5 (a+b x)^4 (b c-a d)^4}-\frac {b^3 B (c+d x)^4 \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )}{8 g^5 (a+b x)^4 (b c-a d)^4}+\frac {b^2 d (c+d x)^3 \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )^2}{g^5 (a+b x)^3 (b c-a d)^4}+\frac {2 b^2 B d (c+d x)^3 \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )}{3 g^5 (a+b x)^3 (b c-a d)^4}+\frac {d^3 (c+d x) \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )^2}{g^5 (a+b x) (b c-a d)^4}+\frac {2 B d^3 (c+d x) \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )}{g^5 (a+b x) (b c-a d)^4}-\frac {3 b d^2 (c+d x)^2 \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )^2}{2 g^5 (a+b x)^2 (b c-a d)^4}-\frac {3 b B d^2 (c+d x)^2 \left (B \log \left (\frac {e (a+b x)}{c+d x}\right )+A\right )}{2 g^5 (a+b x)^2 (b c-a d)^4}-\frac {b^3 B^2 (c+d x)^4}{32 g^5 (a+b x)^4 (b c-a d)^4}+\frac {2 b^2 B^2 d (c+d x)^3}{9 g^5 (a+b x)^3 (b c-a d)^4}+\frac {2 B^2 d^3 (c+d x)}{g^5 (a+b x) (b c-a d)^4}-\frac {3 b B^2 d^2 (c+d x)^2}{4 g^5 (a+b x)^2 (b c-a d)^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2341
Rule 2342
Rule 2395
Rule 2550
Rubi steps
\begin {align*} \int \frac {\left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{(a g+b g x)^5} \, dx &=-\frac {\left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 b g^5 (a+b x)^4}+\frac {B \int \frac {(b c-a d) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{g^4 (a+b x)^5 (c+d x)} \, dx}{2 b g}\\ &=-\frac {\left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 b g^5 (a+b x)^4}+\frac {(B (b c-a d)) \int \frac {A+B \log \left (\frac {e (a+b x)}{c+d x}\right )}{(a+b x)^5 (c+d x)} \, dx}{2 b g^5}\\ &=-\frac {\left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 b g^5 (a+b x)^4}+\frac {(B (b c-a d)) \int \left (\frac {b \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{(b c-a d) (a+b x)^5}-\frac {b d \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{(b c-a d)^2 (a+b x)^4}+\frac {b d^2 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{(b c-a d)^3 (a+b x)^3}-\frac {b d^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{(b c-a d)^4 (a+b x)^2}+\frac {b d^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{(b c-a d)^5 (a+b x)}-\frac {d^5 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{(b c-a d)^5 (c+d x)}\right ) \, dx}{2 b g^5}\\ &=-\frac {\left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 b g^5 (a+b x)^4}+\frac {B \int \frac {A+B \log \left (\frac {e (a+b x)}{c+d x}\right )}{(a+b x)^5} \, dx}{2 g^5}+\frac {\left (B d^4\right ) \int \frac {A+B \log \left (\frac {e (a+b x)}{c+d x}\right )}{a+b x} \, dx}{2 (b c-a d)^4 g^5}-\frac {\left (B d^5\right ) \int \frac {A+B \log \left (\frac {e (a+b x)}{c+d x}\right )}{c+d x} \, dx}{2 b (b c-a d)^4 g^5}-\frac {\left (B d^3\right ) \int \frac {A+B \log \left (\frac {e (a+b x)}{c+d x}\right )}{(a+b x)^2} \, dx}{2 (b c-a d)^3 g^5}+\frac {\left (B d^2\right ) \int \frac {A+B \log \left (\frac {e (a+b x)}{c+d x}\right )}{(a+b x)^3} \, dx}{2 (b c-a d)^2 g^5}-\frac {(B d) \int \frac {A+B \log \left (\frac {e (a+b x)}{c+d x}\right )}{(a+b x)^4} \, dx}{2 (b c-a d) g^5}\\ &=-\frac {B \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{8 b g^5 (a+b x)^4}+\frac {B d \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{6 b (b c-a d) g^5 (a+b x)^3}-\frac {B d^2 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{4 b (b c-a d)^2 g^5 (a+b x)^2}+\frac {B d^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b (b c-a d)^3 g^5 (a+b x)}+\frac {B d^4 \log (a+b x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b (b c-a d)^4 g^5}-\frac {\left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 b g^5 (a+b x)^4}-\frac {B d^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{2 b (b c-a d)^4 g^5}+\frac {B^2 \int \frac {b c-a d}{(a+b x)^5 (c+d x)} \, dx}{8 b g^5}-\frac {\left (B^2 d^4\right ) \int \frac {(c+d x) \left (-\frac {d e (a+b x)}{(c+d x)^2}+\frac {b e}{c+d x}\right ) \log (a+b x)}{e (a+b x)} \, dx}{2 b (b c-a d)^4 g^5}+\frac {\left (B^2 d^4\right ) \int \frac {(c+d x) \left (-\frac {d e (a+b x)}{(c+d x)^2}+\frac {b e}{c+d x}\right ) \log (c+d x)}{e (a+b x)} \, dx}{2 b (b c-a d)^4 g^5}-\frac {\left (B^2 d^3\right ) \int \frac {b c-a d}{(a+b x)^2 (c+d x)} \, dx}{2 b (b c-a d)^3 g^5}+\frac {\left (B^2 d^2\right ) \int \frac {b c-a d}{(a+b x)^3 (c+d x)} \, dx}{4 b (b c-a d)^2 g^5}-\frac {\left (B^2 d\right ) \int \frac {b c-a d}{(a+b x)^4 (c+d x)} \, dx}{6 b (b c-a d) g^5}\\ &=-\frac {B \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{8 b g^5 (a+b x)^4}+\frac {B d \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{6 b (b c-a d) g^5 (a+b x)^3}-\frac {B d^2 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{4 b (b c-a d)^2 g^5 (a+b x)^2}+\frac {B d^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b (b c-a d)^3 g^5 (a+b x)}+\frac {B d^4 \log (a+b x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b (b c-a d)^4 g^5}-\frac {\left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 b g^5 (a+b x)^4}-\frac {B d^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{2 b (b c-a d)^4 g^5}-\frac {\left (B^2 d\right ) \int \frac {1}{(a+b x)^4 (c+d x)} \, dx}{6 b g^5}-\frac {\left (B^2 d^3\right ) \int \frac {1}{(a+b x)^2 (c+d x)} \, dx}{2 b (b c-a d)^2 g^5}+\frac {\left (B^2 d^2\right ) \int \frac {1}{(a+b x)^3 (c+d x)} \, dx}{4 b (b c-a d) g^5}+\frac {\left (B^2 (b c-a d)\right ) \int \frac {1}{(a+b x)^5 (c+d x)} \, dx}{8 b g^5}-\frac {\left (B^2 d^4\right ) \int \frac {(c+d x) \left (-\frac {d e (a+b x)}{(c+d x)^2}+\frac {b e}{c+d x}\right ) \log (a+b x)}{a+b x} \, dx}{2 b (b c-a d)^4 e g^5}+\frac {\left (B^2 d^4\right ) \int \frac {(c+d x) \left (-\frac {d e (a+b x)}{(c+d x)^2}+\frac {b e}{c+d x}\right ) \log (c+d x)}{a+b x} \, dx}{2 b (b c-a d)^4 e g^5}\\ &=-\frac {B \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{8 b g^5 (a+b x)^4}+\frac {B d \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{6 b (b c-a d) g^5 (a+b x)^3}-\frac {B d^2 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{4 b (b c-a d)^2 g^5 (a+b x)^2}+\frac {B d^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b (b c-a d)^3 g^5 (a+b x)}+\frac {B d^4 \log (a+b x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b (b c-a d)^4 g^5}-\frac {\left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 b g^5 (a+b x)^4}-\frac {B d^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{2 b (b c-a d)^4 g^5}-\frac {\left (B^2 d\right ) \int \left (\frac {b}{(b c-a d) (a+b x)^4}-\frac {b d}{(b c-a d)^2 (a+b x)^3}+\frac {b d^2}{(b c-a d)^3 (a+b x)^2}-\frac {b d^3}{(b c-a d)^4 (a+b x)}+\frac {d^4}{(b c-a d)^4 (c+d x)}\right ) \, dx}{6 b g^5}-\frac {\left (B^2 d^3\right ) \int \left (\frac {b}{(b c-a d) (a+b x)^2}-\frac {b d}{(b c-a d)^2 (a+b x)}+\frac {d^2}{(b c-a d)^2 (c+d x)}\right ) \, dx}{2 b (b c-a d)^2 g^5}+\frac {\left (B^2 d^2\right ) \int \left (\frac {b}{(b c-a d) (a+b x)^3}-\frac {b d}{(b c-a d)^2 (a+b x)^2}+\frac {b d^2}{(b c-a d)^3 (a+b x)}-\frac {d^3}{(b c-a d)^3 (c+d x)}\right ) \, dx}{4 b (b c-a d) g^5}+\frac {\left (B^2 (b c-a d)\right ) \int \left (\frac {b}{(b c-a d) (a+b x)^5}-\frac {b d}{(b c-a d)^2 (a+b x)^4}+\frac {b d^2}{(b c-a d)^3 (a+b x)^3}-\frac {b d^3}{(b c-a d)^4 (a+b x)^2}+\frac {b d^4}{(b c-a d)^5 (a+b x)}-\frac {d^5}{(b c-a d)^5 (c+d x)}\right ) \, dx}{8 b g^5}-\frac {\left (B^2 d^4\right ) \int \left (\frac {b e \log (a+b x)}{a+b x}-\frac {d e \log (a+b x)}{c+d x}\right ) \, dx}{2 b (b c-a d)^4 e g^5}+\frac {\left (B^2 d^4\right ) \int \left (\frac {b e \log (c+d x)}{a+b x}-\frac {d e \log (c+d x)}{c+d x}\right ) \, dx}{2 b (b c-a d)^4 e g^5}\\ &=-\frac {B^2}{32 b g^5 (a+b x)^4}+\frac {7 B^2 d}{72 b (b c-a d) g^5 (a+b x)^3}-\frac {13 B^2 d^2}{48 b (b c-a d)^2 g^5 (a+b x)^2}+\frac {25 B^2 d^3}{24 b (b c-a d)^3 g^5 (a+b x)}+\frac {25 B^2 d^4 \log (a+b x)}{24 b (b c-a d)^4 g^5}-\frac {B \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{8 b g^5 (a+b x)^4}+\frac {B d \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{6 b (b c-a d) g^5 (a+b x)^3}-\frac {B d^2 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{4 b (b c-a d)^2 g^5 (a+b x)^2}+\frac {B d^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b (b c-a d)^3 g^5 (a+b x)}+\frac {B d^4 \log (a+b x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b (b c-a d)^4 g^5}-\frac {\left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 b g^5 (a+b x)^4}-\frac {25 B^2 d^4 \log (c+d x)}{24 b (b c-a d)^4 g^5}-\frac {B d^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{2 b (b c-a d)^4 g^5}-\frac {\left (B^2 d^4\right ) \int \frac {\log (a+b x)}{a+b x} \, dx}{2 (b c-a d)^4 g^5}+\frac {\left (B^2 d^4\right ) \int \frac {\log (c+d x)}{a+b x} \, dx}{2 (b c-a d)^4 g^5}+\frac {\left (B^2 d^5\right ) \int \frac {\log (a+b x)}{c+d x} \, dx}{2 b (b c-a d)^4 g^5}-\frac {\left (B^2 d^5\right ) \int \frac {\log (c+d x)}{c+d x} \, dx}{2 b (b c-a d)^4 g^5}\\ &=-\frac {B^2}{32 b g^5 (a+b x)^4}+\frac {7 B^2 d}{72 b (b c-a d) g^5 (a+b x)^3}-\frac {13 B^2 d^2}{48 b (b c-a d)^2 g^5 (a+b x)^2}+\frac {25 B^2 d^3}{24 b (b c-a d)^3 g^5 (a+b x)}+\frac {25 B^2 d^4 \log (a+b x)}{24 b (b c-a d)^4 g^5}-\frac {B \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{8 b g^5 (a+b x)^4}+\frac {B d \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{6 b (b c-a d) g^5 (a+b x)^3}-\frac {B d^2 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{4 b (b c-a d)^2 g^5 (a+b x)^2}+\frac {B d^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b (b c-a d)^3 g^5 (a+b x)}+\frac {B d^4 \log (a+b x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b (b c-a d)^4 g^5}-\frac {\left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 b g^5 (a+b x)^4}-\frac {25 B^2 d^4 \log (c+d x)}{24 b (b c-a d)^4 g^5}+\frac {B^2 d^4 \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (c+d x)}{2 b (b c-a d)^4 g^5}-\frac {B d^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{2 b (b c-a d)^4 g^5}+\frac {B^2 d^4 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{2 b (b c-a d)^4 g^5}-\frac {\left (B^2 d^4\right ) \int \frac {\log \left (\frac {b (c+d x)}{b c-a d}\right )}{a+b x} \, dx}{2 (b c-a d)^4 g^5}-\frac {\left (B^2 d^4\right ) \text {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,a+b x\right )}{2 b (b c-a d)^4 g^5}-\frac {\left (B^2 d^4\right ) \text {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,c+d x\right )}{2 b (b c-a d)^4 g^5}-\frac {\left (B^2 d^5\right ) \int \frac {\log \left (\frac {d (a+b x)}{-b c+a d}\right )}{c+d x} \, dx}{2 b (b c-a d)^4 g^5}\\ &=-\frac {B^2}{32 b g^5 (a+b x)^4}+\frac {7 B^2 d}{72 b (b c-a d) g^5 (a+b x)^3}-\frac {13 B^2 d^2}{48 b (b c-a d)^2 g^5 (a+b x)^2}+\frac {25 B^2 d^3}{24 b (b c-a d)^3 g^5 (a+b x)}+\frac {25 B^2 d^4 \log (a+b x)}{24 b (b c-a d)^4 g^5}-\frac {B^2 d^4 \log ^2(a+b x)}{4 b (b c-a d)^4 g^5}-\frac {B \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{8 b g^5 (a+b x)^4}+\frac {B d \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{6 b (b c-a d) g^5 (a+b x)^3}-\frac {B d^2 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{4 b (b c-a d)^2 g^5 (a+b x)^2}+\frac {B d^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b (b c-a d)^3 g^5 (a+b x)}+\frac {B d^4 \log (a+b x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b (b c-a d)^4 g^5}-\frac {\left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 b g^5 (a+b x)^4}-\frac {25 B^2 d^4 \log (c+d x)}{24 b (b c-a d)^4 g^5}+\frac {B^2 d^4 \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (c+d x)}{2 b (b c-a d)^4 g^5}-\frac {B d^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{2 b (b c-a d)^4 g^5}-\frac {B^2 d^4 \log ^2(c+d x)}{4 b (b c-a d)^4 g^5}+\frac {B^2 d^4 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{2 b (b c-a d)^4 g^5}-\frac {\left (B^2 d^4\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {d x}{b c-a d}\right )}{x} \, dx,x,a+b x\right )}{2 b (b c-a d)^4 g^5}-\frac {\left (B^2 d^4\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {b x}{-b c+a d}\right )}{x} \, dx,x,c+d x\right )}{2 b (b c-a d)^4 g^5}\\ &=-\frac {B^2}{32 b g^5 (a+b x)^4}+\frac {7 B^2 d}{72 b (b c-a d) g^5 (a+b x)^3}-\frac {13 B^2 d^2}{48 b (b c-a d)^2 g^5 (a+b x)^2}+\frac {25 B^2 d^3}{24 b (b c-a d)^3 g^5 (a+b x)}+\frac {25 B^2 d^4 \log (a+b x)}{24 b (b c-a d)^4 g^5}-\frac {B^2 d^4 \log ^2(a+b x)}{4 b (b c-a d)^4 g^5}-\frac {B \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{8 b g^5 (a+b x)^4}+\frac {B d \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{6 b (b c-a d) g^5 (a+b x)^3}-\frac {B d^2 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{4 b (b c-a d)^2 g^5 (a+b x)^2}+\frac {B d^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b (b c-a d)^3 g^5 (a+b x)}+\frac {B d^4 \log (a+b x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )}{2 b (b c-a d)^4 g^5}-\frac {\left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2}{4 b g^5 (a+b x)^4}-\frac {25 B^2 d^4 \log (c+d x)}{24 b (b c-a d)^4 g^5}+\frac {B^2 d^4 \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (c+d x)}{2 b (b c-a d)^4 g^5}-\frac {B d^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)}{2 b (b c-a d)^4 g^5}-\frac {B^2 d^4 \log ^2(c+d x)}{4 b (b c-a d)^4 g^5}+\frac {B^2 d^4 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right )}{2 b (b c-a d)^4 g^5}+\frac {B^2 d^4 \text {Li}_2\left (-\frac {d (a+b x)}{b c-a d}\right )}{2 b (b c-a d)^4 g^5}+\frac {B^2 d^4 \text {Li}_2\left (\frac {b (c+d x)}{b c-a d}\right )}{2 b (b c-a d)^4 g^5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 4 vs. order 3 in
optimal.
time = 0.63, size = 748, normalized size = 1.30 \begin {gather*} -\frac {72 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )^2+\frac {B \left (36 (b c-a d)^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )+48 d (-b c+a d)^3 (a+b x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )+72 d^2 (b c-a d)^2 (a+b x)^2 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )+144 d^3 (-b c+a d) (a+b x)^3 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )-144 d^4 (a+b x)^4 \log (a+b x) \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right )+144 d^4 (a+b x)^4 \left (A+B \log \left (\frac {e (a+b x)}{c+d x}\right )\right ) \log (c+d x)-144 B d^3 (a+b x)^3 (b c-a d+d (a+b x) \log (a+b x)-d (a+b x) \log (c+d x))+36 B d^2 (a+b x)^2 \left ((b c-a d)^2+2 d (-b c+a d) (a+b x)-2 d^2 (a+b x)^2 \log (a+b x)+2 d^2 (a+b x)^2 \log (c+d x)\right )-8 B d (a+b x) \left (2 (b c-a d)^3-3 d (b c-a d)^2 (a+b x)+6 d^2 (b c-a d) (a+b x)^2+6 d^3 (a+b x)^3 \log (a+b x)-6 d^3 (a+b x)^3 \log (c+d x)\right )+3 B \left (3 (b c-a d)^4+4 d (-b c+a d)^3 (a+b x)+6 d^2 (b c-a d)^2 (a+b x)^2+12 d^3 (-b c+a d) (a+b x)^3-12 d^4 (a+b x)^4 \log (a+b x)+12 d^4 (a+b x)^4 \log (c+d x)\right )+72 B d^4 (a+b x)^4 \left (\log (a+b x) \left (\log (a+b x)-2 \log \left (\frac {b (c+d x)}{b c-a d}\right )\right )-2 \text {Li}_2\left (\frac {d (a+b x)}{-b c+a d}\right )\right )-72 B d^4 (a+b x)^4 \left (\left (2 \log \left (\frac {d (a+b x)}{-b c+a d}\right )-\log (c+d x)\right ) \log (c+d x)+2 \text {Li}_2\left (\frac {b (c+d x)}{b c-a d}\right )\right )\right )}{(b c-a d)^4}}{288 b g^5 (a+b x)^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1392\) vs.
\(2(559)=1118\).
time = 0.44, size = 1393, normalized size = 2.42
method | result | size |
derivativedivides | \(\text {Expression too large to display}\) | \(1393\) |
default | \(\text {Expression too large to display}\) | \(1393\) |
norman | \(\text {Expression too large to display}\) | \(1796\) |
risch | \(\text {Expression too large to display}\) | \(3080\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 2129 vs.
\(2 (567) = 1134\).
time = 0.51, size = 2129, normalized size = 3.70 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 1033, normalized size = 1.80 \begin {gather*} -\frac {9 \, {\left (8 \, A^{2} + 4 \, A B + B^{2}\right )} b^{4} c^{4} - 32 \, {\left (9 \, A^{2} + 6 \, A B + 2 \, B^{2}\right )} a b^{3} c^{3} d + 216 \, {\left (2 \, A^{2} + 2 \, A B + B^{2}\right )} a^{2} b^{2} c^{2} d^{2} - 288 \, {\left (A^{2} + 2 \, A B + 2 \, B^{2}\right )} a^{3} b c d^{3} + {\left (72 \, A^{2} + 300 \, A B + 415 \, B^{2}\right )} a^{4} d^{4} - 12 \, {\left ({\left (12 \, A B + 25 \, B^{2}\right )} b^{4} c d^{3} - {\left (12 \, A B + 25 \, B^{2}\right )} a b^{3} d^{4}\right )} x^{3} + 6 \, {\left ({\left (12 \, A B + 13 \, B^{2}\right )} b^{4} c^{2} d^{2} - 16 \, {\left (6 \, A B + 11 \, B^{2}\right )} a b^{3} c d^{3} + {\left (84 \, A B + 163 \, B^{2}\right )} a^{2} b^{2} d^{4}\right )} x^{2} - 72 \, {\left (B^{2} b^{4} d^{4} x^{4} + 4 \, B^{2} a b^{3} d^{4} x^{3} + 6 \, B^{2} a^{2} b^{2} d^{4} x^{2} + 4 \, B^{2} a^{3} b d^{4} x - B^{2} b^{4} c^{4} + 4 \, B^{2} a b^{3} c^{3} d - 6 \, B^{2} a^{2} b^{2} c^{2} d^{2} + 4 \, B^{2} a^{3} b c d^{3}\right )} \log \left (\frac {{\left (b x + a\right )} e}{d x + c}\right )^{2} - 4 \, {\left ({\left (12 \, A B + 7 \, B^{2}\right )} b^{4} c^{3} d - 12 \, {\left (6 \, A B + 5 \, B^{2}\right )} a b^{3} c^{2} d^{2} + 108 \, {\left (2 \, A B + 3 \, B^{2}\right )} a^{2} b^{2} c d^{3} - {\left (156 \, A B + 271 \, B^{2}\right )} a^{3} b d^{4}\right )} x - 12 \, {\left ({\left (12 \, A B + 25 \, B^{2}\right )} b^{4} d^{4} x^{4} - 3 \, {\left (4 \, A B + B^{2}\right )} b^{4} c^{4} + 16 \, {\left (3 \, A B + B^{2}\right )} a b^{3} c^{3} d - 36 \, {\left (2 \, A B + B^{2}\right )} a^{2} b^{2} c^{2} d^{2} + 48 \, {\left (A B + B^{2}\right )} a^{3} b c d^{3} + 4 \, {\left (3 \, B^{2} b^{4} c d^{3} + 2 \, {\left (6 \, A B + 11 \, B^{2}\right )} a b^{3} d^{4}\right )} x^{3} - 6 \, {\left (B^{2} b^{4} c^{2} d^{2} - 8 \, B^{2} a b^{3} c d^{3} - 6 \, {\left (2 \, A B + 3 \, B^{2}\right )} a^{2} b^{2} d^{4}\right )} x^{2} + 4 \, {\left (B^{2} b^{4} c^{3} d - 6 \, B^{2} a b^{3} c^{2} d^{2} + 18 \, B^{2} a^{2} b^{2} c d^{3} + 12 \, {\left (A B + B^{2}\right )} a^{3} b d^{4}\right )} x\right )} \log \left (\frac {{\left (b x + a\right )} e}{d x + c}\right )}{288 \, {\left ({\left (b^{9} c^{4} - 4 \, a b^{8} c^{3} d + 6 \, a^{2} b^{7} c^{2} d^{2} - 4 \, a^{3} b^{6} c d^{3} + a^{4} b^{5} d^{4}\right )} g^{5} x^{4} + 4 \, {\left (a b^{8} c^{4} - 4 \, a^{2} b^{7} c^{3} d + 6 \, a^{3} b^{6} c^{2} d^{2} - 4 \, a^{4} b^{5} c d^{3} + a^{5} b^{4} d^{4}\right )} g^{5} x^{3} + 6 \, {\left (a^{2} b^{7} c^{4} - 4 \, a^{3} b^{6} c^{3} d + 6 \, a^{4} b^{5} c^{2} d^{2} - 4 \, a^{5} b^{4} c d^{3} + a^{6} b^{3} d^{4}\right )} g^{5} x^{2} + 4 \, {\left (a^{3} b^{6} c^{4} - 4 \, a^{4} b^{5} c^{3} d + 6 \, a^{5} b^{4} c^{2} d^{2} - 4 \, a^{6} b^{3} c d^{3} + a^{7} b^{2} d^{4}\right )} g^{5} x + {\left (a^{4} b^{5} c^{4} - 4 \, a^{5} b^{4} c^{3} d + 6 \, a^{6} b^{3} c^{2} d^{2} - 4 \, a^{7} b^{2} c d^{3} + a^{8} b d^{4}\right )} g^{5}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.64, size = 995, normalized size = 1.73 \begin {gather*} -\frac {{\left (72 \, B^{2} b^{3} e^{5} \log \left (\frac {b x e + a e}{d x + c}\right )^{2} - \frac {288 \, {\left (b x e + a e\right )} B^{2} b^{2} d e^{4} \log \left (\frac {b x e + a e}{d x + c}\right )^{2}}{d x + c} + \frac {432 \, {\left (b x e + a e\right )}^{2} B^{2} b d^{2} e^{3} \log \left (\frac {b x e + a e}{d x + c}\right )^{2}}{{\left (d x + c\right )}^{2}} - \frac {288 \, {\left (b x e + a e\right )}^{3} B^{2} d^{3} e^{2} \log \left (\frac {b x e + a e}{d x + c}\right )^{2}}{{\left (d x + c\right )}^{3}} + 144 \, A B b^{3} e^{5} \log \left (\frac {b x e + a e}{d x + c}\right ) + 36 \, B^{2} b^{3} e^{5} \log \left (\frac {b x e + a e}{d x + c}\right ) - \frac {576 \, {\left (b x e + a e\right )} A B b^{2} d e^{4} \log \left (\frac {b x e + a e}{d x + c}\right )}{d x + c} - \frac {192 \, {\left (b x e + a e\right )} B^{2} b^{2} d e^{4} \log \left (\frac {b x e + a e}{d x + c}\right )}{d x + c} + \frac {864 \, {\left (b x e + a e\right )}^{2} A B b d^{2} e^{3} \log \left (\frac {b x e + a e}{d x + c}\right )}{{\left (d x + c\right )}^{2}} + \frac {432 \, {\left (b x e + a e\right )}^{2} B^{2} b d^{2} e^{3} \log \left (\frac {b x e + a e}{d x + c}\right )}{{\left (d x + c\right )}^{2}} - \frac {576 \, {\left (b x e + a e\right )}^{3} A B d^{3} e^{2} \log \left (\frac {b x e + a e}{d x + c}\right )}{{\left (d x + c\right )}^{3}} - \frac {576 \, {\left (b x e + a e\right )}^{3} B^{2} d^{3} e^{2} \log \left (\frac {b x e + a e}{d x + c}\right )}{{\left (d x + c\right )}^{3}} + 72 \, A^{2} b^{3} e^{5} + 36 \, A B b^{3} e^{5} + 9 \, B^{2} b^{3} e^{5} - \frac {288 \, {\left (b x e + a e\right )} A^{2} b^{2} d e^{4}}{d x + c} - \frac {192 \, {\left (b x e + a e\right )} A B b^{2} d e^{4}}{d x + c} - \frac {64 \, {\left (b x e + a e\right )} B^{2} b^{2} d e^{4}}{d x + c} + \frac {432 \, {\left (b x e + a e\right )}^{2} A^{2} b d^{2} e^{3}}{{\left (d x + c\right )}^{2}} + \frac {432 \, {\left (b x e + a e\right )}^{2} A B b d^{2} e^{3}}{{\left (d x + c\right )}^{2}} + \frac {216 \, {\left (b x e + a e\right )}^{2} B^{2} b d^{2} e^{3}}{{\left (d x + c\right )}^{2}} - \frac {288 \, {\left (b x e + a e\right )}^{3} A^{2} d^{3} e^{2}}{{\left (d x + c\right )}^{3}} - \frac {576 \, {\left (b x e + a e\right )}^{3} A B d^{3} e^{2}}{{\left (d x + c\right )}^{3}} - \frac {576 \, {\left (b x e + a e\right )}^{3} B^{2} d^{3} e^{2}}{{\left (d x + c\right )}^{3}}\right )} {\left (\frac {b c}{{\left (b c e - a d e\right )} {\left (b c - a d\right )}} - \frac {a d}{{\left (b c e - a d e\right )} {\left (b c - a d\right )}}\right )}}{288 \, {\left (\frac {{\left (b x e + a e\right )}^{4} b^{3} c^{3} g^{5}}{{\left (d x + c\right )}^{4}} - \frac {3 \, {\left (b x e + a e\right )}^{4} a b^{2} c^{2} d g^{5}}{{\left (d x + c\right )}^{4}} + \frac {3 \, {\left (b x e + a e\right )}^{4} a^{2} b c d^{2} g^{5}}{{\left (d x + c\right )}^{4}} - \frac {{\left (b x e + a e\right )}^{4} a^{3} d^{3} g^{5}}{{\left (d x + c\right )}^{4}}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 10.30, size = 1881, normalized size = 3.27 \begin {gather*} -\frac {\frac {72\,A^2\,a^3\,d^3-216\,A^2\,a^2\,b\,c\,d^2+216\,A^2\,a\,b^2\,c^2\,d-72\,A^2\,b^3\,c^3+300\,A\,B\,a^3\,d^3-276\,A\,B\,a^2\,b\,c\,d^2+156\,A\,B\,a\,b^2\,c^2\,d-36\,A\,B\,b^3\,c^3+415\,B^2\,a^3\,d^3-161\,B^2\,a^2\,b\,c\,d^2+55\,B^2\,a\,b^2\,c^2\,d-9\,B^2\,b^3\,c^3}{12\,\left (a\,d-b\,c\right )}+\frac {x^2\,\left (-13\,c\,B^2\,b^3\,d^2+163\,a\,B^2\,b^2\,d^3-12\,A\,c\,B\,b^3\,d^2+84\,A\,a\,B\,b^2\,d^3\right )}{2\,\left (a\,d-b\,c\right )}+\frac {x\,\left (271\,B^2\,a^2\,b\,d^3-53\,B^2\,a\,b^2\,c\,d^2+7\,B^2\,b^3\,c^2\,d+156\,A\,B\,a^2\,b\,d^3-60\,A\,B\,a\,b^2\,c\,d^2+12\,A\,B\,b^3\,c^2\,d\right )}{3\,\left (a\,d-b\,c\right )}+\frac {d\,x^3\,\left (25\,B^2\,b^3\,d^2+12\,A\,B\,b^3\,d^2\right )}{a\,d-b\,c}}{x\,\left (96\,a^5\,b^2\,d^2\,g^5-192\,a^4\,b^3\,c\,d\,g^5+96\,a^3\,b^4\,c^2\,g^5\right )+x^3\,\left (96\,a^3\,b^4\,d^2\,g^5-192\,a^2\,b^5\,c\,d\,g^5+96\,a\,b^6\,c^2\,g^5\right )+x^4\,\left (24\,a^2\,b^5\,d^2\,g^5-48\,a\,b^6\,c\,d\,g^5+24\,b^7\,c^2\,g^5\right )+x^2\,\left (144\,a^4\,b^3\,d^2\,g^5-288\,a^3\,b^4\,c\,d\,g^5+144\,a^2\,b^5\,c^2\,g^5\right )+24\,a^6\,b\,d^2\,g^5+24\,a^4\,b^3\,c^2\,g^5-48\,a^5\,b^2\,c\,d\,g^5}-{\ln \left (\frac {e\,\left (a+b\,x\right )}{c+d\,x}\right )}^2\,\left (\frac {B^2}{4\,b^2\,g^5\,\left (4\,a^3\,x+\frac {a^4}{b}+b^3\,x^4+6\,a^2\,b\,x^2+4\,a\,b^2\,x^3\right )}-\frac {B^2\,d^4}{4\,b\,g^5\,\left (a^4\,d^4-4\,a^3\,b\,c\,d^3+6\,a^2\,b^2\,c^2\,d^2-4\,a\,b^3\,c^3\,d+b^4\,c^4\right )}\right )-\frac {\ln \left (\frac {e\,\left (a+b\,x\right )}{c+d\,x}\right )\,\left (\frac {A\,B}{2\,b^2\,d\,g^5}+\frac {B^2\,d^4\,\left (a\,\left (a\,\left (\frac {4\,a^2\,d^2-5\,a\,b\,c\,d+b^2\,c^2}{12\,b\,d^3}+\frac {a\,\left (a\,d-b\,c\right )}{4\,b\,d^2}\right )+\frac {6\,a^3\,d^3-10\,a^2\,b\,c\,d^2+5\,a\,b^2\,c^2\,d-b^3\,c^3}{12\,b\,d^4}\right )+\frac {4\,a^4\,d^4-10\,a^3\,b\,c\,d^3+10\,a^2\,b^2\,c^2\,d^2-5\,a\,b^3\,c^3\,d+b^4\,c^4}{4\,b\,d^5}\right )}{2\,b\,g^5\,\left (a^4\,d^4-4\,a^3\,b\,c\,d^3+6\,a^2\,b^2\,c^2\,d^2-4\,a\,b^3\,c^3\,d+b^4\,c^4\right )}+\frac {B^2\,d^4\,x^2\,\left (b\,\left (b\,\left (\frac {4\,a^2\,d^2-5\,a\,b\,c\,d+b^2\,c^2}{12\,b\,d^3}+\frac {a\,\left (a\,d-b\,c\right )}{4\,b\,d^2}\right )+\frac {4\,a^2\,d^2-5\,a\,b\,c\,d+b^2\,c^2}{6\,d^3}+\frac {a\,\left (a\,d-b\,c\right )}{2\,d^2}\right )-a\,\left (\frac {b^2\,c-a\,b\,d}{4\,d^2}-\frac {b\,\left (a\,d-b\,c\right )}{2\,d^2}\right )+\frac {4\,a^2\,b\,d^2-5\,a\,b^2\,c\,d+b^3\,c^2}{4\,d^3}\right )}{2\,b\,g^5\,\left (a^4\,d^4-4\,a^3\,b\,c\,d^3+6\,a^2\,b^2\,c^2\,d^2-4\,a\,b^3\,c^3\,d+b^4\,c^4\right )}-\frac {B^2\,d^4\,x^3\,\left (b\,\left (\frac {b^2\,c-a\,b\,d}{4\,d^2}-\frac {b\,\left (a\,d-b\,c\right )}{2\,d^2}\right )+\frac {b^3\,c-a\,b^2\,d}{4\,d^2}\right )}{2\,b\,g^5\,\left (a^4\,d^4-4\,a^3\,b\,c\,d^3+6\,a^2\,b^2\,c^2\,d^2-4\,a\,b^3\,c^3\,d+b^4\,c^4\right )}+\frac {B^2\,d^4\,x\,\left (b\,\left (a\,\left (\frac {4\,a^2\,d^2-5\,a\,b\,c\,d+b^2\,c^2}{12\,b\,d^3}+\frac {a\,\left (a\,d-b\,c\right )}{4\,b\,d^2}\right )+\frac {6\,a^3\,d^3-10\,a^2\,b\,c\,d^2+5\,a\,b^2\,c^2\,d-b^3\,c^3}{12\,b\,d^4}\right )+a\,\left (b\,\left (\frac {4\,a^2\,d^2-5\,a\,b\,c\,d+b^2\,c^2}{12\,b\,d^3}+\frac {a\,\left (a\,d-b\,c\right )}{4\,b\,d^2}\right )+\frac {4\,a^2\,d^2-5\,a\,b\,c\,d+b^2\,c^2}{6\,d^3}+\frac {a\,\left (a\,d-b\,c\right )}{2\,d^2}\right )+\frac {6\,a^3\,d^3-10\,a^2\,b\,c\,d^2+5\,a\,b^2\,c^2\,d-b^3\,c^3}{4\,d^4}\right )}{2\,b\,g^5\,\left (a^4\,d^4-4\,a^3\,b\,c\,d^3+6\,a^2\,b^2\,c^2\,d^2-4\,a\,b^3\,c^3\,d+b^4\,c^4\right )}\right )}{\frac {4\,a^3\,x}{d}+\frac {a^4}{b\,d}+\frac {b^3\,x^4}{d}+\frac {6\,a^2\,b\,x^2}{d}+\frac {4\,a\,b^2\,x^3}{d}}+\frac {B\,d^4\,\mathrm {atan}\left (\frac {B\,d^4\,\left (12\,A+25\,B\right )\,\left (-24\,a^4\,b\,d^4\,g^5+48\,a^3\,b^2\,c\,d^3\,g^5-48\,a\,b^4\,c^3\,d\,g^5+24\,b^5\,c^4\,g^5\right )\,1{}\mathrm {i}}{24\,b\,g^5\,{\left (a\,d-b\,c\right )}^4\,\left (25\,B^2\,d^4+12\,A\,B\,d^4\right )}+\frac {B\,d^5\,x\,\left (12\,A+25\,B\right )\,\left (-a^3\,b\,d^3\,g^5+3\,a^2\,b^2\,c\,d^2\,g^5-3\,a\,b^3\,c^2\,d\,g^5+b^4\,c^3\,g^5\right )\,2{}\mathrm {i}}{g^5\,{\left (a\,d-b\,c\right )}^4\,\left (25\,B^2\,d^4+12\,A\,B\,d^4\right )}\right )\,\left (12\,A+25\,B\right )\,1{}\mathrm {i}}{12\,b\,g^5\,{\left (a\,d-b\,c\right )}^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________